﻿<%@ Page CodeFileBaseClass="AliCMS.SiteModule.HomeBase" %>
<%@ Page PathInChannel="index{Ext}" %>
<!doctype html>
<html>
<head>
<ali:List ID="Company" Mark="Company" Instance="SubSite[CompanyInstanceID]" Object="Company" Condition="SubInstanceID=SubSite[CompanySubInstanceID]" />
<meta charset="utf-8">
<meta name="keywords" content="<%=MetaKeywords%>">
<meta name="description" content="<%=MetaDescription%>">
<title><%=SubChannel[Name]%> - <%=SubSite[Name]%></title>
<ali:Comment><link rel="stylesheet" href="../S01/CHS/css/common.css"></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css">
</head>
<body>
<!-- TemplateBeginEditable name="头部" -->
<div class="Wrap Header">
	<%If Convert.ToString(SubSite[Banner]) == String.Empty%>
		<h1><%=SubSite[Name]%></h1>
	<%Else%>
		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
			<param name="movie" value="<%=CommonPath%>flicker/01.swf">
			<param name="quality" value="high">
			<param name="wmode" value="transparent">
			<embed src="<%=CommonPath%>flicker/01.swf" quality="high" type="application/x-shockwave-flash" wmode="transparent"></embed>
		</object>
		<img src="<%=SubSite[Banner]%>" alt="<%=SubSite[Name]%>">
	<%EndIf%>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="菜单" -->
<ali:Menu ID="MainMenu" Condition="ParentID IS NULL and CategoryID IS NULL">
	<div class="Wrap Menu">
		<ul>
			<ali:Record>
				<ali:Select>
					<ali:Yes>
						<li><a class="Selected" rel="<%=URL%>"><span><%=Name%></span></a></li>
					</ali:Yes>
					<ali:No>
						<li><a href="<%=URL%>"><span><%=Name%></span></a></li>
					</ali:No>
				</ali:Select>
				<ali:Separator><li class="Separator"></li></ali:Separator>
			</ali:Record>
		</ul>
	</div>
</ali:Menu>
<%If MainMenu[Count] == 0%>
	<ali:Menu Mark="System" Object="Menu" Condition="ParentID IS NULL AND CategoryID={D352D3B9-FDE9-4D5E-801E-32DC15563724}">
		<div class="Wrap Menu">
			<ul>
				<ali:Record>
					<%If IsMenuSelected(SubWebPath, Record)%>
						<li><a class="Selected"><span><%=Name%></span></a></li>
					<%Else%>
						<li><a href="<%=Convert.ToString(Path).Replace("{SubWebPath}", SubWebPath)%>"><span><%=Name%></span></a></li>
					<%EndIf%>
					<ali:Separator><li class="Separator"></li></ali:Separator>
				</ali:Record>
			</ul>
		</div>
	</ali:Menu>
<%EndIf%>
<!-- TemplateEndEditable -->

</body>
</html>
